// 全局样式
html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  color: #333;
}

html {
  box-sizing: border-box;
  height: 100%;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    width: 6px;
    background-color: rgba(144, 147, 153, 0.3);
    border-radius: 6px;
    transition: background-color 0.3s;
  }

  &::-webkit-scrollbar-corner {
    background: none;
  }

  &::-webkit-scrollbar-track {
    background: none;
  }

  &::-webkit-scrollbar-track-piece {
    width: 6px;
    background: none;
  }

  &::-webkit-scrollbar:horizontal {
    width: 6px;
    height: 10px;
  }

  &::-webkit-scrollbar-thumb:horizontal {
    width: 6px;
    height: 10%;
  }
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
}

div:focus {
  outline: none;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:focus,
a:active {
  outline: none;
}

.clearfix {
  &::after {
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
    content: " ";
  }
}

@for $i from 5 through 50 {
  .ml#{$i} {
    margin-left: 0 + $i;
  }

  .mr#{$i} {
    margin-right: 0 + $i;
  }
}

.fr {
  float: right;
}

.fl {
  float: left;
}
